<template>
    {{ roles }}->{{ username }}
</template>
<script setup>
// 在组件中使用
import { useUserStore } from '@/stores/user'

const userStore = useUserStore()

    
   const username = userStore.getUsername
   const roles = userStore.getMenus
   const token = userStore.getToken
   const universityCode = userStore.getUniversityCode
//    console.log(roles)
console.log(username)
    
</script>